﻿@model ChiDao.Site.Models.LoginModel

@{
    ViewBag.Title = "登录系统";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@*<h2>登录</h2>

    @using (Html.BeginForm()) {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend></legend>

            <div class="editor-label">
                @Html.LabelFor(model => model.Account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Account)
                @Html.ValidationMessageFor(model => model.Account)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Password)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Password)
                @Html.ValidationMessageFor(model => model.Password)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.IsRememberLogin)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.IsRememberLogin)
                @Html.ValidationMessageFor(model => model.IsRememberLogin)
            </div>
            @Html.HiddenFor(m => m.ReturnUrl)
            <p>
                <input type="submit" value="登录" />
            </p>
        </fieldset>
    }

    <div>
        @Html.ActionLink("返回首页", "Index", "Home")
    </div>

    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }*@
<!-- The styles -->
<link id="bs-css" href="~/resources/BootStrap/css/bootstrap-cerulean.css" rel="stylesheet">
<style type="text/css">
    body {
        padding-bottom: 40px;
    }

    .sidebar-nav {
        padding: 9px 0;
    }
</style>
<link href="~/resources/BootStrap/img/favicon.ico" rel="shortcut icon" />
@*<link href="~/resources/BootStrap/css/bootstrap-responsive.css" rel="stylesheet">*@
<link href="~/resources/BootStrap/css/charisma-app.css" rel="stylesheet">
@*<link href="~/resources/BootStrap/css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
    <link href='~/resources/BootStrap/css/fullcalendar.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/fullcalendar.print.css' rel='stylesheet' media='print'>
    <link href='~/resources/BootStrap/css/chosen.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/uniform.default.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/colorbox.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/jquery.cleditor.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/jquery.noty.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/noty_theme_default.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/elfinder.min.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/elfinder.theme.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/jquery.iphone.toggle.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/opa-icons.css' rel='stylesheet'>
    <link href='~/resources/BootStrap/css/uploadify.css' rel='stylesheet'>*@


<!-- The fav icon -->
<link rel="shortcut icon" href="img/favicon.ico">

<body>
    <div class="container-fluid">
        <div class="row-fluid">

            <div class="row-fluid">
                <div class="span12 center login-header">
                    <h2>欢迎使用WEB系统</h2>
                </div><!--/span-->
            </div><!--/row-->

            <div class="row-fluid">
                <div class="well span5 center login-box">
                    <div class="alert alert-info">
                        请输入您的用户名和密码进行登录
                    </div>
                    <form class="form-horizontal" method="post">
                        <fieldset>
                            <div class="input-prepend" title="用户名" data-rel="tooltip">
                                <span class="add-on"><i class="icon-user"></i></span>
                                @*<input autofocus class="input-large span10" name="username" id="username" type="text" value="admin" />*@
                                @Html.EditorFor(model => model.Account)
                                @*@Html.ValidationMessageFor(model => model.Account)*@
                            </div>
                            <div class="clearfix"></div>

                            <div class="input-prepend" title="密码" data-rel="tooltip">
                                <span class="add-on"><i class="icon-lock"></i></span>
                                @*<input class="input-large span10" name="password" id="password" type="password" value="admin123456" />*@
                                @Html.EditorFor(model => model.Password)
                                @*@Html.ValidationMessageFor(model => model.Password)*@
                            </div>
                            <div class="clearfix"></div>

                            <div class="input-prepend" title="记住登录状态，下次自动登录">
                                @*<label class="remember" for="remember"><input type="checkbox" id="remember" />Remember me</label>*@
                                <label class="remember" for="remember">@Html.EditorFor(model => model.IsRememberLogin)记住登录</label>

                                @Html.ValidationMessageFor(model => model.IsRememberLogin)
                            </div>

                            <div class="clearfix"></div>

                            <p class="center span5">
                                @Html.HiddenFor(m => m.ReturnUrl)
                                <button type="submit" class="btn btn-primary">登录</button>
                            </p>
                        </fieldset>
                    </form>
                </div><!--/span-->
            </div><!--/row-->
        </div><!--/fluid-row-->
    </div>
</body>
